package com.javabase.study;

import java.util.Scanner;

/**
 * TODO
 * 内容：
 * 作者:jxx
 * 创建时间：2021/7/18
 */
public class NumberPlusOne {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        String arrayStr = sc.nextLine();
        int arrayLength = arrayStr.length();
        StringBuilder sb = null;

        for(int i = 0;i<arrayLength;i++){
            char x = arrayStr.charAt(i);
            if(!"[".equals(x) || !"]".equals(x) || !",".equals(x) ){
                sb.append(x);
            }
        }
        int [] arrayInt = new int[sb.length()];
        for(int i = 1;i < arrayLength-1;i++){
            arrayInt[i] = (int)arrayStr.charAt(i);
        }
        boolean flg = false;
        int[] arrayIncrease;
        if(arrayInt[0] == 9){
            arrayIncrease = new int[arrayInt.length + 1];
        }
        arrayIncrease = new int[arrayInt.length];

        for(int j = 0;j < arrayInt.length;j++){

            int firstEle = arrayInt[arrayInt.length - 1 - j];
            if (firstEle == 9){
                arrayInt[arrayInt.length - 1 - j] = 0;
                flg = true;
            }

        }
    }


}
